//
//  CAAnimation+multipleAnimation.h
//  CoolTennisBall
//
//  Created by Coollang on 16/11/14.
//  Copyright © 2016年 CoolLang. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>

@interface CAAnimation (multipleAnimation)

#pragma mark === 永久闪烁的动画 ======
/*--------------- 永久闪烁的动画 ---------------*/
+ (CABasicAnimation *)opacityForever_Animation:(float)time formValue:(CGFloat)formValue toValue:(CGFloat)toValue;
/*-------------  横向、纵向移动---------------*/
+(CABasicAnimation *)moveX:(float)time X:(NSNumber *)x;
/*--------------- 缩放 ---------------*/
+ (CABasicAnimation *)scale:(NSNumber *)Multiple orgin:(NSNumber *)orginMultiple durTimes:(float)time Rep:(float)repertTimes;
/*--------------- 组合动画- ---------------*/
+(CAAnimationGroup *)groupAnimation:(NSArray *)animationAry durTimes:(float)time Rep:(float)repeatTimes;
/*--------------- 旋转动画 ---------------*/
+(CABasicAnimation *)rotation:(float)dur degree:(float)degree direction:(int)direction repeatCount:(int)repeatCount;
/*--------------- 路径动画 ---------------*/
+(CAKeyframeAnimation *)keyframeAnimation:(CGMutablePathRef)path durTimes:(float)time Rep:(float)repeatTimes;
/*--------------- 扩散动画 ---------------*/
+ (CAAnimationGroup *)spreadAnimationWithTime:(CGFloat)time repeatCount:(NSInteger)repeatCount;
@end
